package park;

public class J05Ex36ComputeTime {
	
	public static void main(String[] args){
		
		//변수선언
		int day2sec = 86400; //하루를 초로 환산
		int hour2sec = 3600; //1시간을 초로 환산
		int min2sec = 60;	 //1분을 초로 환산
		int date1 = 1234567890;
		int date2 = 12345;
		int date3 = 67890;
		String result="";
				
		//시간계산
		
		result += "1234567890초는" +
				(date1/day2sec) + "일" +
			    (date1%day2sec)/hour2sec + "시" + 
				((date1%day2sec)%hour2sec)/min2sec + "분" + 
				((date1%day2sec)%hour2sec)%min2sec +"초\n";
				
		result += "12345초는" + (date2/hour2sec) + "시간입니다 \n";
		result += "67890초는" + (date3/min2sec) + "분입니다";
		
		
		
		//결과출력
		System.out.println(result);
	}

}
